package j04zuoye.com.hualan.graph;

import java.awt.*;

public final class Circle extends Graph{
    static final double PI=3.14;
    Point center;
    double r;

    public Circle(Point center, double r) {
        this.center = center;
        this.r = r;
    }

    public boolean isIntersect(Circle c){
        return false;
    }

    @Override
    public double area() {
        return r*r*PI;
    }

    @Override
    public double perimeter() {
        return 2*PI*r;
    }
}
